{{foreach from=$attributes item=attribute}}
<label>
	<span title="{{$attribute.name}}"
		  class="attribute{{if $attribute.protected}} protected{{/if}}">
		{{$attribute.name}}
		{{if !$attribute.protected AND $is_writeable AND $attribute.name neq 'OBJ_NAME' }}
		<a href="javascript:attribute_delete('{{$attribute.name}}');" class="delete_attribute">
			<img src="img/delete.png" border="0" />
		</a>
		{{/if}}
	</span>
	<input dojoType="dijit.form.TextBox"
		   name=" {{if $attribute.protected}}protected_{{/if}}attributes[{{$attribute.name}}]"
		   value="{{$attribute.value}}"
		   {{if $attribute.protected OR !$is_writeable}}disabled="disabled"{{/if}}
		   style="width: 99%;" />
</label>
{{/foreach}}

<button dojoType=dijit.form.Button type="button"
		onclick="attributes_update();"
		{{if !$is_writeable}} disabled="disabled"{{/if}}>
	Attribute speichern
</button>